Skip to content

feat(incident-detective): constrain case generation - #9

Merged
margrop merged 1 commit into
mainfrom
agent/p2-005-constrained-case-generation
Jul 25, 2026
Merged

margrop merged 1 commit into
mainfrom
agent/p2-005-constrained-case-generation

Conversation

@margrop

@margrop margrop commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • add versioned inputs for bounded case generation, internal Case Proposals, and explicit human review
  • add a provider-neutral incident-detective.case-proposal-v1 operation with deterministic post-processing
  • validate evidence DAGs, reachable budget paths, real evidence tradeoffs, counterevidence, read-only access, privacy, and caller-owned constraints
  • keep model output review-only and permanently non-publishable; server-owned safety notes cannot be relaxed by the model
  • complete P2-005 fixtures, documentation, schema registry, and TODO state

Safety boundary

  • the Provider never receives evidence payloads, internal answers, canonical attempts, or scoring rules
  • invalid/sensitive inputs fail before the Provider call
  • invalid proposals receive at most one bounded retry and are otherwise discarded
  • an approved human review still returns publishable: false
  • this change adds no live Provider, HTTP route, UI action, GitHub write, deployment, storage, or analytics

Validation

  • npm run validate
  • 16 test files / 193 tests passed
  • production Astro build passed
  • 38 static contracts passed

@margrop
margrop marked this pull request as ready for review July 25, 2026 10:38
@margrop
margrop merged commit fb56f63 into main Jul 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant